package com.meilai.project.controller.mini.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
public class CustomerNextVisitDTO {

    @ApiModelProperty("客户id")
    private Long id;

    @ApiModelProperty("下次拜访时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;

    @ApiModelProperty("拜访目的")
    private String purpose;
}
